package re

import "regexp"

func IsValidChinese(s string) bool {
	re := regexp.MustCompile("^[\u4e00-\u9fa5]{2,4}$")
	return re.MatchString(s)
}

func IsValidPhone(phone string) bool {
	re := regexp.MustCompile(`^1[3-9]\d{9}$`)
	return re.MatchString(phone)
}
